package com.ljye.jg.ljye.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ljye.jg.ljye.R;

import de.hdodenhof.circleimageview.CircleImageView;

public class Activity_uesr_info extends Activity {

    public View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.back://返回
                    finish();
                    break;

                default:
                    break;
            }
        }
    };
    private ImageView back;//返回
    private LinearLayout authentication;//头像 名字一条
    private CircleImageView headPortrait;//头像
    private TextView name;//用户名
    private TextView sex;//性别
    private TextView phone;//电话
    private String uesrid;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uesr_info);
        initView();
        //上一个界面传过来的date
        Intent intent = getIntent();
        Bundle extras = intent.getExtras();
        uesrid = extras.getString("uesr_id");
        name.setText(uesrid);

        back.setOnClickListener(listener);
    }

    private void initView() {
        back = (ImageView) findViewById(R.id.back);
        authentication = (LinearLayout) findViewById(R.id.authentication);
        headPortrait = (CircleImageView) findViewById(R.id.head_portrait);
        name = (TextView) findViewById(R.id.name);
        sex = (TextView) findViewById(R.id.sex);
        phone = (TextView) findViewById(R.id.phone);

    }
}
